package com.ruoyi.controller;

import com.ruoyi.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: RuoYi-Vue-master
 * @Date: 2023-07-19 11:02
 * @author: Fox0g
 * @description: TODO
 */
@RestController
@RequestMapping("/system/user")
public class UserController {

    @Autowired
    private SysUserService userService;

    @PostMapping("/isValidUser")
    public boolean isValidUser(@RequestParam("username") String username, @RequestParam("password") String password){
        boolean isValid = userService.verifyUser(username, password);

        return isValid;
    }
}
